PEGetPrintDate

Use PEGetPrintDate to determine the print date (if any) that was specified with the report. Use this function to retrieve the print date and pass it back using PESetPrintDate.

C Syntax
BOOL CRPE_API PEGetPrintDate (
        short printJob,
        short FAR *year,    
        short FAR *month,    
        short FAR *day );
Parameters

printJob

Specifies the print job for which you want to retrieve the print date setting.

year

Specifies a pointer to the year component of the print date.

month

Specifies a pointer to the month component of the print date.

day

Specifies a pointer to the day component of the print date.

Returns
Remarks

You change the print date, typically, when you want to run the report today yet have it appear to have been run on a different date. An example would be, if you were out of town on the last day of the previous month and you later want to run a report for that month and make it appear as if it were run on the last day of the month rather than the current date.

VB Syntax
Declare Function PEGetPrintDate Lib "crpe32.dll" (ByVal printJob As 
Integer, Date_Year As Integer, Date_Month As Integer, Date_Day As 
Integer) As Integer
Delphi Syntax
function PEGetPrintDate (
    printJob: Word;
    var year: Word;
    var month: Word;
    var day: Word
    ): Bool stdcall;


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com